package com.centit.framework.ip.templateFile.dao;

import com.centit.framework.core.dao.CodeBook;
import com.centit.framework.ip.templateFile.po.TemplateFile;
import com.centit.framework.jdbc.dao.BaseDaoImpl;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.Map;



/**
 * TemplateFileDao  Repository.
 * create by scaffold 2018-05-17 
 * @author codefan@sina.com
 * C_TEMPLATE_FILEnull   
*/

@Repository
public class TemplateFileDao extends BaseDaoImpl<TemplateFile,String>
	{

	public static final Log log = LogFactory.getLog(TemplateFileDao.class);
	
	@Override
	public Map<String, String> getFilterField() {
		if( filterField == null){
			filterField = new HashMap<String, String>();

			filterField.put("recordid" , CodeBook.EQUAL_HQL_ID);


			filterField.put("templateid" , CodeBook.EQUAL_HQL_ID);

			filterField.put("filename" , CodeBook.EQUAL_HQL_ID);

			filterField.put("filetype" , CodeBook.EQUAL_HQL_ID);

			filterField.put("filebody" , CodeBook.EQUAL_HQL_ID);

			filterField.put("username" , CodeBook.EQUAL_HQL_ID);

			filterField.put("isused" , CodeBook.EQUAL_HQL_ID);

			filterField.put("temptype" , CodeBook.EQUAL_HQL_ID);

			filterField.put("orderby" , CodeBook.EQUAL_HQL_ID);

			filterField.put("filesize" , CodeBook.EQUAL_HQL_ID);

			filterField.put("filedate" , CodeBook.EQUAL_HQL_ID);

			filterField.put("filepath" , CodeBook.EQUAL_HQL_ID);

			filterField.put("descript" , CodeBook.LIKE_HQL_ID);

			filterField.put("codecode" , CodeBook.EQUAL_HQL_ID);
			
			filterField.put(CodeBook.ORDER_BY_HQL_ID, " orderby asc ");

		}
		return filterField;
	} 
}
